package com.order.service;

import com.order.dao.Desk;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DeskService {
    //    查询列表
     List<Desk> getDesks(Desk desk);

//    判断语句
      int judgment(String name);

    //   增加列表
      int addDesk(Desk desk);
    //    逻辑删除，实质是 更新
      int deleteDesk(int id);
    //    改变状态，预定或者退桌
      int changeStatus(Desk desk);
      Desk selectDesk(int id);

}
